package com.weds.frame.auth.entity.base;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2023/3/17 14:08
 */
@Data
@NoArgsConstructor
public class JWTCreateResponse {

    private String code;
    private String message;
    private String data;

    public String toString() {
        return "JWTCreateResponse{code='" + this.code + '\'' + ", message='" + this.message + '\'' + ", data='" + this.data + '\'' + '}';
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof JWTCreateResponse)) {
            return false;
        } else {
            JWTCreateResponse other = (JWTCreateResponse)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                String this$message;
                String other$message;
                label42: {
                    this$message = this.getCode();
                    other$message = other.getCode();
                    if (this$message == null) {
                        if (other$message == null) {
                            break label42;
                        }
                    } else if (this$message.equals(other$message)) {
                        break label42;
                    }

                    return false;
                }

                this$message = this.getMessage();
                other$message = other.getMessage();
                if (this$message == null) {
                    if (other$message != null) {
                        return false;
                    }
                } else if (!this$message.equals(other$message)) {
                    return false;
                }

                Object this$data = this.getData();
                Object other$data = other.getData();
                if (this$data == null) {
                    if (other$data != null) {
                        return false;
                    }
                } else if (!this$data.equals(other$data)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof JWTCreateResponse;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $code = this.getCode();
        result = result * 59 + ($code == null ? 43 : $code.hashCode());
        Object $message = this.getMessage();
        result = result * 59 + ($message == null ? 43 : $message.hashCode());
        Object $data = this.getData();
        result = result * 59 + ($data == null ? 43 : $data.hashCode());
        return result;
    }

}
